<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/axios.min.js"></script>
    <script>


        async function send(){
            let x = confirm("真的解决了吗？");
            alert(x);
            var num = 0;
           await axios.get("getStr").then(resp =>{
                num = resp.data;
            });
            alert("num="+num);
        }
    </script>
</head>
<body>
    <input type="button" value="提交" onclick="send()">*****

</body>
</html>